<template>
  <div>
    <el-button @click="show = true">打开注册表单</el-button>
    <!-- <add-form :show="show" @update:show="show = $event" /> -->
    <add-form :show.sync="show" />
    <!-- vue3 的话是 v-model:show="show" -->
  </div>
</template>

<script>
import addForm from './component/addForm.vue'
export default {
  components: { addForm },
  data() {
    return {
      show: false
    }
  }
}
</script>

<style>

</style>
